﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlReportViewer.ascx.cs" Inherits="UserControl_ReportViewerControl" %>

<%@ Register assembly="DevExpress.XtraReports.v9.2.Web, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.XtraReports.Web" tagprefix="dxxr" %>

<table cellpadding="0" style="margin-top:40px" cellspacing="0" border="0" width="100%">
    <tr>        
        <td align="center">
            <dxxr:ReportToolbar ID="ReportToolbar1" runat="server" Width="900px"
                ShowDefaultButtons="False" ReportViewer="<%# ReportViewer1 %>">
                <Items>
                    <dxxr:ReportToolbarButton ItemKind="Search" />
                    <dxxr:ReportToolbarSeparator />
                    <dxxr:ReportToolbarButton ItemKind="PrintReport" />
                    <dxxr:ReportToolbarButton ItemKind="PrintPage" />
                    <dxxr:ReportToolbarSeparator />
                    <dxxr:ReportToolbarButton Enabled="False" ItemKind="FirstPage" />
                    <dxxr:ReportToolbarButton Enabled="False" ItemKind="PreviousPage" />
                    <dxxr:ReportToolbarLabel ItemKind="PageLabel" />
                    <dxxr:ReportToolbarComboBox ItemKind="PageNumber" Width="65px">
                    </dxxr:ReportToolbarComboBox>
                    <dxxr:ReportToolbarLabel ItemKind="OfLabel" />
                    <dxxr:ReportToolbarTextBox IsReadOnly="True" ItemKind="PageCount" />
                    <dxxr:ReportToolbarButton ItemKind="NextPage" />
                    <dxxr:ReportToolbarButton ItemKind="LastPage" />
                    <dxxr:ReportToolbarSeparator />
                    <dxxr:ReportToolbarButton ItemKind="SaveToDisk" />
                    <dxxr:ReportToolbarComboBox ItemKind="SaveFormat" Width="70px">
                        <Elements>
                            <dxxr:ListElement Value="pdf" Text="Pdf" />
                            <dxxr:ListElement Value="xlsx" Text="Xlsx" />
                            <dxxr:ListElement Value="rtf" Text="Rtf" />
                            <dxxr:ListElement Value="mht" Text="Mht"/>
                            <dxxr:ListElement Value="txt" Text="Txt" />
                            <dxxr:ListElement Value="csv" Text="Csv"/>
                            <dxxr:ListElement Value="png" Text="Png"/>
                        </Elements>
                    </dxxr:ReportToolbarComboBox>
                </Items>
                
                <styles>
                    <LabelStyle><Margins MarginLeft='3px' MarginRight='3px' /></LabelStyle>
                </styles>
            </dxxr:ReportToolbar>
        </td>
    </tr>
  
   <%-- <tr>
        <td align="center">
            <asp:Panel ID="Panel1" runat="server" Visible="false">
               <asp:PlaceHolder ID="DocumentMapPlaceHolder" runat="server"></asp:PlaceHolder>
            </asp:Panel>
        </td>
    </tr>--%>
    <tr>
        <td align="center">
        
            <dxxr:ReportViewer ID="ReportViewer1" runat="server" style="width: 950px; height: 100%" runat="server" ClientInstanceName="ReportViewer1" EnableViewState="False" AutoSize="True">
            </dxxr:ReportViewer>
        
        </td>
    </tr>
    
</table>

